﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Business.Entities;

namespace Solution.Data
{
   public class KhungDienTichDAC
    {
        SolutionEntities context = SolutionEntities.Context;
        public List<KhungDienTich> KhungDienTich_GetByTop(string Top, string Where, string Ord)
        {
            var list = context.KhungDienTich_GetByTop(Top, Where, Ord);
            return list.ToList();
        }

        public void KhungDienTich_Insert(KhungDienTich khungdientich)
        {
            context.KhungDienTich_Insert(khungdientich.Name, khungdientich.MinValues, khungdientich.MaxValues);
        }

        public void KhungDienTich_Update(KhungDienTich khungdientich)
        {
            context.KhungDienTich_Update(khungdientich.KhungdientichId, khungdientich.Name, khungdientich.MinValues, khungdientich.MaxValues);
        }
    }
}
